﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Message.Outbox" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<input type="hidden" name="Rety" value="0" id="Rety" />
<input type="hidden" name="DPID" value="0" id="DPID" />
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div id="MessagesBox" style="display:<%=delflag==1?"block":"none" %>">
					<div class="MessagePanel4">
						<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;" alt=""/>
						<div id="MessageText"><%=GetText("C1004")%></div>
					</div>
				</div>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("M0020")%></h1>
							</div>
							<div class="submenuN_button">
							</div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="first " style="cursor:pointer"><span><a href="/mail/inbox.htm">Inbox</a></span></li>
						<li class="selATags" style="cursor:pointer"><span><a href="/mail/outbox.htm">Sent Messages</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/notifications.htm">Notifications</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="/mail/blackboard.htm">Blackboard</a></span></li>
						<li class="" style="cursor:pointer"><span><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/mail/compose.htm">Compose new message</a><%}else{ %><a href="#" onclick="NotAffirm()">Compose new message</a><%} %></span></li>
					</ul>
					<div class="clear"></div>
					<!--popular latest-->
				</div>
				<div class="center9001n">
					<div class="Center9001common">
						<div class="Center9001Content">
							<div class="outbox_area">
								<div>
									<div class="floatl"><strong><%=GetText("ML007")%>: </strong><a href="javascript:;" onclick="javascript:selChange('div_outbox','input',true);"><%=GetText("ML009")%></a>&nbsp;|&nbsp;<a href="javascript:;" onclick="javascript:selChange('div_outbox','input',false);"><%=GetText("ML008")%></a></div>
									<div class="floatr">
										<div id="showDELDiv" style="display:none"><a href="#" onclick="Adel(-1)"><%=GetText("C0050")%></a></div>
										<div id="hideDelDiv" class="grey12"><%=GetText("C0050")%></div>							        
									</div>
									<div class="clear"></div>
								</div>
								<div class="outbox_list" id="div_outbox">
								<asp:repeater id="rptList" Runat="server">
								<ItemTemplate>
								<table width="870" border="0" cellspacing="0" cellpadding="0" class='<%#((bool)Eval("Read_Post"))?"Read":"noRead"%>'>
								  <tr>
									<td width="30" align="center" valign="top" onclick="setDelState()"><input type="checkbox" id="<%#Eval("PM_ID") %>" value="<%#Eval("PM_ID") %>"  /></td>
									<td width="70" valign="top"><div class="pic50" style=" margin:0 auto; width:50px"><a href="/<%#IsShowInfo(Eval("ToNo").ToString(),Eval("ToNo").ToString(),Eval("FromNo").ToString()) %>.htm" class="photo_50" title="<%#IsShowInfo(Eval("ToNo").ToString(),HttpUtility.HtmlAttributeEncode(Eval("ToNickName").ToString()),HttpUtility.HtmlAttributeEncode(Eval("FromNickName").ToString())) %>"><img alt="<%#IsShowInfo(Eval("ToNo").ToString(),HttpUtility.HtmlAttributeEncode(Eval("ToNickName").ToString()),HttpUtility.HtmlAttributeEncode(Eval("FromNickName").ToString())) %>" src='<%#(IsShowInfo(Eval("ToNo").ToString(),Eval("ToAvatar").ToString(),Eval("FromAvatar").ToString())==""?"/Images/no_pic.gif":IsShowInfo(Eval("ToNo").ToString(),Eval("ToAvatar").ToString(),Eval("FromAvatar").ToString()))%>' border="0" /></a></div></td>
									<td width="170" valign="top"><%=GetText("CT072")%>: <span><a href='/<%#IsShowInfo(Eval("ToNo").ToString(),Eval("ToNo").ToString(),Eval("FromNo").ToString())%>.htm' ><%#IsShowInfo(Eval("ToNo").ToString(), HttpUtility.HtmlEncode((Eval("ToNickName").ToString())), HttpUtility.HtmlEncode(Eval("FromNickName").ToString()))%></a></span><br /><span class="grey10"><%#FormatDiffDate(GetText("C0036"), Eval("DiffLastUpdate").ToString())%></span></td>
									<td width="600" valign="top"><%#((bool)Eval("Read_Post"))?"":"<strong>"%><a href='/mail/readmail.htm?ID=<%#Eval( "PM_ID")%>&flag=out&ACount=<%#RecordCount%>&CNo=<%#CurrCount() %>'><%#HttpUtility.HtmlEncode(Eval("PM_Tittle").ToString())%></a><%#((bool)Eval("Read_Post"))?"":"</strong>"%><br /><%#Lx.Web.Common.UI.Globals.GetString(Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("NewReplyMes").ToString()==""?Eval("PM_Message").ToString():Eval("NewReplyMes").ToString()),100)%></td>
									<td width="30" valign="top"><a href="#"  onclick="Adel('<%#Eval("PM_ID") %>')" title="<%=GetText("C0050")%>"><img src="/Images/board_delete.gif" alt="<%=GetText("C0050")%>" border="0"/></a></td>
								  </tr>
								</table>
								</ItemTemplate>
								</asp:repeater>
								</div>
								<div class="page_num">
									<%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex,
								"", string.Format("<span class='page_none grey10'><a href='{1}/mail/outbox-$I$.htm'>{0}</a></span>&nbsp;",  HttpUtility.UrlEncode(GetText("Prev")), WWWHost),
								"", string.Format("<span class='page_none grey10'><a href='{1}/mail/outbox-$I$.htm'>{0}</a></span>&nbsp;", HttpUtility.UrlEncode(GetText("Next")), WWWHost),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/mail/outbox-$I$.htm'>$I$</a></span>&nbsp;", WWWHost))%>   
								</div>
								<div id="divDelOp" style=" text-align:center">
									<%if (RecordCount <= 0)
									{%>
									<p><%=GetText("ML300")%></p>
									<%} %>
								</div>
							</div>			
						</div>
					</div>
					<div class="center9001left"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>var C1008="<%=GetText("C1008") %>";
var C0069 = '<%=GetText("C0069")%>';
var gCancel = "<%=GetText("C0056")%>";</script>
